﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="discover.aspx.vb" Inherits="bookmeetprototype.discover" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<head><title>Discover</title></head>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 <ul class="breadcrumb">
    <li><a id="A4" runat="server" href="~/Default.aspx">Home</a> <span class="divider">/</span></li>
    <li><a id="A5" runat="server" href="~/discover.aspx">Discover</a> <span class="divider">/</span></li>
    <li class="active">All Articles</li>
    </ul>
<h2><p>Recently Added Articles</p></h2>
<hr />
   <asp:Repeater id="articleList" runat="server">
    <ItemTemplate>
        <div class="itemtemplate">

       <h2><%#Container.DataItem("Title")%></h2>
        <p class="articlecategory"><small><%#Container.DataItem("Category")%></small></p><hr />
        <p class="text-left"><%#Server.HtmlDecode(Container.DataItem("HTMLPost").ToString())%></p><hr />
        <p class="articleusername"><small><%#Container.DataItem("UserName")%></small></p>
        <p class="articledate"><small><%#Container.DataItem("DateOfPost")%></small></p><hr />
    </div>
    </ItemTemplate>
    <AlternatingItemTemplate>
    <div class="altitemtemplate">
            <h2><%#Container.DataItem("Title")%></h2>
        <p class="articlecategory"><small><%#Container.DataItem("Category")%></small></p><hr />
        <p class="text-left"><%#Server.HtmlDecode(Container.DataItem("HTMLPost").ToString())%></p><hr />
        <p class="articleusername"><small><%#Container.DataItem("UserName")%></small></p>
        <p class="articledate"><small><%#Container.DataItem("DateOfPost")%></small></p><hr />
    </div>
    </AlternatingItemTemplate>
    </asp:Repeater>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="SidebarContent" runat="server">
 <ul class="nav nav-list">
              <ul class="nav nav-list">
              <li class="nav-header">Account</li>
              <li><a id="A1" runat="server" href="~/Account/Register.aspx">Register</a></li>
              <li><a id="A2" runat="server" href="~/Account/editprofile.aspx">Edit Profile</a></li>
              <li><a id="A6" runat="server" href="~/Account/signupbc.aspx">Book Club Registration</a></li>
              <li class="nav-header">Superuser</li>
              <li><a id="A7" runat="server" href="~/ArticleAdmin.aspx">Write Articles</a></li>
              <li class="nav-header">Miscellaneous</li>
              <li><a id="A8" runat="server" href="~/rss.ashx">RSS Feed</a></li>
              <li><a id="A9" runat="server" href="~/browsem.aspx">Search Users</a></li>
              <li><a id="A10" runat="server" href="~/browsec.aspx">Search Book Clubs</a></li>
              <li><a id="A11" runat="server" href="~/bookshelf.aspx">Your Bookshelf</a></li>
              <li><a id="A12" runat="server" href="~/faq.aspx">FAQs</a></li>
            </ul>
            <hr />
            <p><small>If you are interested in writing an article for us, then please <a id="A3" href="~/Account/signupbc.aspx" runat="server">sign up as a book club administrator</a>, and you will be able to publish articles to this page straight away.</small></p>

</asp:Content>
